import request from '@/utils/request'
// 获取角色列表
export function getEmployees(params) {
  return request({
    url: '/sys/user',
    method: 'get',
    params
  })
}
export function getDelEmployee(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'delete'
  })
}
export function getAddEmployee(data) {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}
export function getImportEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
export function getUserDetail(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'get'
  })
}
export function getUpdateEmployee(data) {
  return request({
    url: '/sys/user/' + data.id,
    method: 'put',
    data
  })
}
export function upDateRoles(data) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'put',
    data
  })
}
